package com.zhang.step;


import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.junit.Test;
public class AloneLog4j2 {

    //单独使用log4j2
    @Test
    public void test1() {
        Logger logger = LogManager.getLogger(AloneLog4j2.class);
        logger.trace("trace信息");
        logger.debug("debug信息");
        logger.info("trace信息");
        logger.warn("warn信息");
        logger.error("error信息");
        logger.fatal("fatal信息");


    }
}


